﻿using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace WebLog
{
    public class SysLogDto
    {
        [Description("版本")]
        public string V { get; set; }
        [Description("时间")]
        public DateTime? Date { get; set; }
        [Description("消息")]
        [ControlType(ControlTypeEnum.多行文本框)]
        public string MSG { get; set; }
        [Description("排序字段")]
        public SysLogDtoOrderFields? OrderField { get; set; } = null;
        [Description("是否降序")]
        public bool? IsDesc { get; set; } = null;
        [Description("第几行起")]
        [IsShow(false)]
        public int Skip { get; set; }
        [Description("第几行结束")]
        [IsShow(false)]
        public int Take { get; set; }
        public int CurrentPageIndex { get; set; }
        public int PageSize { get; set; }
    }
    public enum SysLogDtoOrderFields
    {
        V,
        MSG,
        Date
    }
}